<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>CAD-Tool: body_loop.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CAD-Tool
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">body_loop.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="body__loop_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef BODY_loop_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define BODY_loop_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="structs_8h.html">structs.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="faceloop__generator_8h.html">faceloop_generator.h</a>&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="classbody__loop.html">   10</a></span>&#160;<span class="keyword">class </span><a class="code" href="classbody__loop.html">body_loop</a></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;{</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classbody__loop.html#aac59ff1c3fd827c48ad15391400600d4">   13</a></span>&#160;    std::vector&lt;face_loop&gt; <a class="code" href="classbody__loop.html#aac59ff1c3fd827c48ad15391400600d4">face_loop_list</a>;  </div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classbody__loop.html#aa4e8adf7cebc6dc08ff335b71b0b6fa0">   14</a></span>&#160;    std::vector&lt;bool&gt; <a class="code" href="classbody__loop.html#aa4e8adf7cebc6dc08ff335b71b0b6fa0">side_of_face_loop</a>; </div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <a class="code" href="classbody__loop.html">body_loop</a>(std::vector&lt;face_loop&gt; face_loop_list);</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="classbody__loop.html">body_loop</a>();</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keywordtype">void</span> add_face_loop(<a class="code" href="classface__loop.html">face_loop</a> fl, <span class="keywordtype">bool</span> side);</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;};</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    std::vector&lt; body_loop &gt; <a class="code" href="body__loop_8h.html#a230720d5c9d1a2805c6c743287d28d5b">generate_body_loop</a>(std::vector&lt; face_loop &gt; face_loop_list,</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        std::vector&lt;vertex_3d&gt; v3d_list);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="comment">// std::vector&lt; pair&lt;int,bool&gt; &gt; S;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="comment">// std::vector&lt;bool&gt; side_used[2];</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="comment">// for both + and - side</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="comment">// bool side =&gt; side = 0 = &#39;+&#39; and side = 1 = &#39;-&#39;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    pair&lt;int,bool&gt; <a class="code" href="body__loop_8h.html#a85f5918713a8c62784797c5766195628">successive_face_loop</a>(std::vector&lt; face_loop &gt; face_loop_list,</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <a class="code" href="classface__loop.html">face_loop</a> fl, <span class="keywordtype">int</span> fl_int, <span class="keywordtype">bool</span> side, <a class="code" href="classedge__3d.html">edge_3d</a> e, std::vector&lt;vertex_3d&gt; v3d_list, <span class="keywordtype">bool</span> inner_basic);</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="body__loop_8h.html#af9a0c6603771f19b48cb31a570811386">initialize_side_used</a>(std::vector&lt; pair&lt;bool,bool&gt; &gt; &amp;side_used );</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="body__loop_8h.html#a0378c493f0dba980e5de09d11f03f447">check_legality</a>(<a class="code" href="classbody__loop.html">body_loop</a> bp);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="body__loop_8h.html#a68ebe3fd8487bbca7800bd67b4386970">inner_outer</a>(<a class="code" href="classbody__loop.html">body_loop</a> bp,std::vector&lt;vertex_3d&gt; v3d_list);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="comment">//algo to think =&gt; how to determine if a ray intersects with any surface of a body loop</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    std::vector&lt;float&gt; <a class="code" href="body__loop_8h.html#ad8e1589cd5ef438b41ebcce9fc970049">get_ray_l</a>(<a class="code" href="classplane.html">plane</a> p1, <a class="code" href="classplane.html">plane</a> p2, <span class="keywordtype">bool</span> s1, <span class="keywordtype">bool</span> s2);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="ttc" id="classbody__loop_html"><div class="ttname"><a href="classbody__loop.html">body_loop</a></div><div class="ttdef"><b>Definition:</b> <a href="body__loop_8h_source.html#l00010">body_loop.h:10</a></div></div>
<div class="ttc" id="body__loop_8h_html_af9a0c6603771f19b48cb31a570811386"><div class="ttname"><a href="body__loop_8h.html#af9a0c6603771f19b48cb31a570811386">initialize_side_used</a></div><div class="ttdeci">void initialize_side_used(std::vector&lt; pair&lt; bool, bool &gt; &gt; &amp;side_used)</div><div class="ttdoc">function that initializes side_used for both sides + and - for every body loop </div><div class="ttdef"><b>Definition:</b> <a href="body__loop_8cpp_source.html#l00152">body_loop.cpp:152</a></div></div>
<div class="ttc" id="classface__loop_html"><div class="ttname"><a href="classface__loop.html">face_loop</a></div><div class="ttdef"><b>Definition:</b> <a href="faceloop__generator_8h_source.html#l00025">faceloop_generator.h:25</a></div></div>
<div class="ttc" id="structs_8h_html"><div class="ttname"><a href="structs_8h.html">structs.h</a></div></div>
<div class="ttc" id="body__loop_8h_html_ad8e1589cd5ef438b41ebcce9fc970049"><div class="ttname"><a href="body__loop_8h.html#ad8e1589cd5ef438b41ebcce9fc970049">get_ray_l</a></div><div class="ttdeci">std::vector&lt; float &gt; get_ray_l(plane p1, plane p2, bool s1, bool s2)</div><div class="ttdoc">function that determines vector along ray l = /|n1| + /|n2|, where @ is the corresponding side ...</div><div class="ttdef"><b>Definition:</b> <a href="body__loop_8cpp_source.html#l00187">body_loop.cpp:187</a></div></div>
<div class="ttc" id="body__loop_8h_html_a230720d5c9d1a2805c6c743287d28d5b"><div class="ttname"><a href="body__loop_8h.html#a230720d5c9d1a2805c6c743287d28d5b">generate_body_loop</a></div><div class="ttdeci">std::vector&lt; body_loop &gt; generate_body_loop(std::vector&lt; face_loop &gt; face_loop_list, std::vector&lt; vertex_3d &gt; v3d_list)</div><div class="ttdef"><b>Definition:</b> <a href="body__loop_8cpp_source.html#l00033">body_loop.cpp:33</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classplane_html"><div class="ttname"><a href="classplane.html">plane</a></div><div class="ttdoc">class for a plane plane represented as (a,b,c,d) corresponding to the equation ax + by + cz = d ...</div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00113">structs.h:113</a></div></div>
<div class="ttc" id="body__loop_8h_html_a85f5918713a8c62784797c5766195628"><div class="ttname"><a href="body__loop_8h.html#a85f5918713a8c62784797c5766195628">successive_face_loop</a></div><div class="ttdeci">pair&lt; int, bool &gt; successive_face_loop(std::vector&lt; face_loop &gt; face_loop_list, face_loop fl, int fl_int, bool side, edge_3d e, std::vector&lt; vertex_3d &gt; v3d_list, bool inner_basic)</div><div class="ttdef"><b>Definition:</b> <a href="body__loop_8cpp_source.html#l00111">body_loop.cpp:111</a></div></div>
<div class="ttc" id="classbody__loop_html_aac59ff1c3fd827c48ad15391400600d4"><div class="ttname"><a href="classbody__loop.html#aac59ff1c3fd827c48ad15391400600d4">body_loop::face_loop_list</a></div><div class="ttdeci">std::vector&lt; face_loop &gt; face_loop_list</div><div class="ttdoc">vector of face loops included in a particular body part </div><div class="ttdef"><b>Definition:</b> <a href="body__loop_8h_source.html#l00013">body_loop.h:13</a></div></div>
<div class="ttc" id="classedge__3d_html"><div class="ttname"><a href="classedge__3d.html">edge_3d</a></div><div class="ttdoc">class for an edge_3d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00097">structs.h:97</a></div></div>
<div class="ttc" id="body__loop_8h_html_a68ebe3fd8487bbca7800bd67b4386970"><div class="ttname"><a href="body__loop_8h.html#a68ebe3fd8487bbca7800bd67b4386970">inner_outer</a></div><div class="ttdeci">bool inner_outer(body_loop bp, std::vector&lt; vertex_3d &gt; v3d_list)</div><div class="ttdoc">function that determines if give body loop is inner or outer </div><div class="ttdef"><b>Definition:</b> <a href="body__loop_8cpp_source.html#l00180">body_loop.cpp:180</a></div></div>
<div class="ttc" id="classbody__loop_html_aa4e8adf7cebc6dc08ff335b71b0b6fa0"><div class="ttname"><a href="classbody__loop.html#aa4e8adf7cebc6dc08ff335b71b0b6fa0">body_loop::side_of_face_loop</a></div><div class="ttdeci">std::vector&lt; bool &gt; side_of_face_loop</div><div class="ttdoc">vector of side of corresponding face loops list </div><div class="ttdef"><b>Definition:</b> <a href="body__loop_8h_source.html#l00014">body_loop.h:14</a></div></div>
<div class="ttc" id="body__loop_8h_html_a0378c493f0dba980e5de09d11f03f447"><div class="ttname"><a href="body__loop_8h.html#a0378c493f0dba980e5de09d11f03f447">check_legality</a></div><div class="ttdeci">bool check_legality(body_loop bp)</div><div class="ttdoc">function that checks that if a body part generated is legal or not </div><div class="ttdef"><b>Definition:</b> <a href="body__loop_8cpp_source.html#l00160">body_loop.cpp:160</a></div></div>
<div class="ttc" id="faceloop__generator_8h_html"><div class="ttname"><a href="faceloop__generator_8h.html">faceloop_generator.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
